class UrlMappings {

	static mappings = {

        "/$controller/$action?"{
			constraints {
				// apply constraints here
			}
		}

        "/$controller/$id?/$action?"{
			constraints {
				// apply constraints here
			}
		}

		"/"(view:"/index")
		"500"(view:'/error')
		"404"(view:'/')
	}
}
